﻿@model FirmaKurierska.Models.LoginModel

@{
    ViewBag.Title = "Zaloguj się";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>

<section id="loginForm">
    @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
    {
        @Html.AntiForgeryToken()
        if (@Html.ValidationSummary(true) != null)
        {

        <div class="alert alert-danger">
            @Html.ValidationSummary(true)
        </div>
        }
        <div class="col-lg-6">
            <div class="well">
                <fieldset>
                    <legend>Formularz logowania</legend>
                    <div class="form-group">
                        <label>@Html.LabelFor(m => m.UserName)</label>
                        @Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                    <div class="form-group">
                        <label>@Html.LabelFor(m => m.Password)</label>
                        @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
                    <div class="form-group">
                        @Html.CheckBoxFor(m => m.RememberMe)
                        <label>@Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })</label>
                        <div class="form-group">

                            <input type="submit" value="Zaloguj" class="btn btn-default" />

                        </div>
                    </div>
                </fieldset>
                <p>
                    @Html.ActionLink("Zarejestruj się", "Register") jeśli nie masz konta użytkownika.
                </p>
            </div>
        </div>
    }
</section>


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
